package com.example.a79273.shandianban;

import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

public class MoreActivity extends BaseActivity implements View.OnClickListener{

    private ImageView mImageViewBack;
    private EditText mEditTextInput;
    private TextView mTextViewFiltrate,mTextViewPrice,mTextViewSalesVolume,mTextViewSynthesize;
    private DrawerLayout mDrawerLayout;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_more);
        initView();
        initData();
        setData();
        setListener();
    }

    private void setListener() {
        mTextViewFiltrate.setOnClickListener(this);
    }

    private void setData() {
    }

    private void initData() {
    }

    private void initView() {
        mImageViewBack = (ImageView) findViewById(R.id.iv_more_back);
        mTextViewFiltrate = (TextView) findViewById(R.id.tv_more_filtrate);
        mTextViewPrice = (TextView) findViewById(R.id.tv_more_price);
        mTextViewSalesVolume = (TextView) findViewById(R.id.tv_more_sales_volume);
        mTextViewSynthesize = (TextView) findViewById(R.id.tv_more_synthesize);
        mDrawerLayout = (DrawerLayout) findViewById(R.id.dl_more_layout);
    }

    //所有的点击事件
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case  R.id.iv_more_back:
                finish();
                break;
            case R.id.tv_more_filtrate:
                mDrawerLayout.openDrawer(Gravity.RIGHT);
                break;
        }
    }
}
